<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="java.util.List"%>
    <%@page import="org.jmu.entity.Colleges"%>
<!DOCTYPE html>
<html>
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
<base href="<%=basePath%>">
<head>
  <meta charset="utf-8">
  <title>Layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="<%=path%>/views/static/layui-v2.5.6/layui/css/layui.css"  media="all">
</head>
<body>

<div class="site-demo-button" id="layerDemo" style="margin-bottom: 0;">
  <button data-method="notice" class="layui-btn layui-btn-radius" onclick="window.location.href='views/static/background.html	'" style="position:absolute;left: 30px;top: 55px;"><i class="layui-icon"></i>返回首页</button>
</div>


<form class="layui-form" lay-filter="example" action="controller/querycollegeBycollege_name" method="post"  enctype="multipart/form-data">
  <div style="position: absolute;top: 60px;left:400px;">
  <div class="layui-form-item">
    <label class="layui-form-label">院校查询</label>
    <div class="layui-input-block" style="width: 230px;">
      <input type="text" name="collegename" lay-verify="title" placeholder="请输入院校名称" autocomplete="off" value="" class="layui-input" >
    </div>
  </div>
 
  <div class="layui-form-item" style="position: absolute;top: 30px;left:250px;">
    <div class="layui-input-block" >
      <button type="submit" class="layui-btn layui-btn-radius" lay-submit="" lay-filter="" style="position: absolute;top: -30px;">Go!</button>
    </div>
  </div>
</div>
  
</form>
        
<div class="layui-tab layui-tab-card">
  <ul class="layui-tab-title">
  	<li></li>
  	<li></li>
    <li class="layui-this"><span style="font-size: large;font-weight: bolder;font-family: 宋体;">北京院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">上海院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">华北院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">华东院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">华中院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">华南院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">东北院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">西北院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">西南院校</span></li>
  </ul>
  <div class="layui-tab-content" style="height: 100px;">
    <div class="layui-tab-item layui-show">
    <br>
    	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend><span style="font-size: large;font-weight: bolder;">北京院校</span></legend>
		</fieldset>
 
		<div class="layui-form">
		  <table class="layui-table">
		    <colgroup>
		      <col width="150">
		      <col width="150">
		      <col width="200">
		      <col width="200">
		    </colgroup>
		    <thead>
		      <tr>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校名称	</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">所在地</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校隶属</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">招生简章</span></th>
		      </tr> 
		    </thead>
		    <tbody>
		    
		    <%List<Colleges> bj_college = (List)session.getAttribute("bj_college"); %>
		    <%for(int i=0;i<bj_college.size();i++) {%>
		      <tr>
		        <td><a href="<%=bj_college.get(i).getCollege_url() %>" target="_blank"><%=bj_college.get(i).getCollegename() %></a></td>
		        <td><%=bj_college.get(i).getPlace() %></td>
		        <td><%=bj_college.get(i).getCollege_belong() %></td>
		        <td><a href="<%=bj_college.get(i).getRecruit_message() %>" target="_blank">查询</a></td>
		      </tr>
		      <%} %>
		    </tbody>
		  </table>
		</div>
    </div>
    
    <div class="layui-tab-item"></div>
    <div class="layui-tab-item">
    <br>
    	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend><span style="font-size: large;font-weight: bolder;">北京院校</span></legend>
		</fieldset>
 
		<div class="layui-form">
		  <table class="layui-table">
		    <colgroup>
		      <col width="150">
		      <col width="150">
		      <col width="200">
		      <col width="200">
		    </colgroup>
		    <thead>
		      <tr>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校名称	</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">所在地</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校隶属</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">招生简章</span></th>
		      </tr> 
		    </thead>
		    <tbody>
		    
		    <%for(int i=0;i<bj_college.size();i++) {%>
		      <tr>
		        <td><a href="<%=bj_college.get(i).getCollege_url() %>" target="_blank"><%=bj_college.get(i).getCollegename() %></a></td>
		        <td><%=bj_college.get(i).getPlace() %></td>
		        <td><%=bj_college.get(i).getCollege_belong() %></td>
		        <td><a href="<%=bj_college.get(i).getRecruit_message() %>" target="_blank">查询</a></td>
		      </tr>
		      <%} %>
		    </tbody>
		  </table>
		</div>
    
    </div>
    
    <div class="layui-tab-item">
    <br>
    	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend><span style="font-size: large;font-weight: bolder;">上海院校</span></legend>
		</fieldset>
 
		<div class="layui-form">
		  <table class="layui-table">
		    <colgroup>
		      <col width="150">
		      <col width="150">
		      <col width="200">
		      <col width="200">
		    </colgroup>
		    <thead>
		      <tr>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校名称	</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">所在地</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校隶属</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">招生简章</span></th>
		      </tr> 
		    </thead>
		    <tbody>
		    <%List<Colleges> sh_college = (List)session.getAttribute("sh_college"); %>
		    <%for(int i=0;i<sh_college.size();i++) {%>
		      <tr>
		        <td><a href="<%=sh_college.get(i).getCollege_url() %>" target="_blank"><%=sh_college.get(i).getCollegename() %></a></td>
		        <td><%=sh_college.get(i).getPlace() %></td>
		        <td><%=sh_college.get(i).getCollege_belong() %></td>
		        <td><a href="<%=sh_college.get(i).getRecruit_message() %>" target="_blank">查询</a></td>
		      </tr>	
		      <%} %>
		    </tbody>
		  </table>
		</div>
    
    </div>
    
    <div class="layui-tab-item">
    <br>
    	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend><span style="font-size: large;font-weight: bolder;">华北院校</span></legend>
		</fieldset>
 
		<div class="layui-form">
		  <table class="layui-table">
		    <colgroup>
		      <col width="150">
		      <col width="150">
		      <col width="200">
		      <col width="200">
		    </colgroup>
		    <thead>
		      <tr>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校名称	</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">所在地</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校隶属</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">招生简章</span></th>
		      </tr> 
		    </thead>
		    <tbody>
		    <%List<Colleges> hb_college = (List)session.getAttribute("hb_college"); %>
		    <%for(int i=0;i<hb_college.size();i++) {%>
		      <tr>
		        <td><a href="<%=hb_college.get(i).getCollege_url() %>" target="_blank"><%=hb_college.get(i).getCollegename() %></a></td>
		        <td><%=hb_college.get(i).getPlace() %></td>
		        <td><%=hb_college.get(i).getCollege_belong() %></td>
		        <td><a href="<%=hb_college.get(i).getRecruit_message() %>" target="_blank">查询</a></td>
		      </tr>	
		      <%} %>
		    </tbody>
		  </table>
		</div>
    
    
    </div>
    
    <div class="layui-tab-item">
    <br>
    	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend><span style="font-size: large;font-weight: bolder;">华东院校</span></legend>
		</fieldset>
 
		<div class="layui-form">
		  <table class="layui-table">
		    <colgroup>
		      <col width="150">
		      <col width="150">
		      <col width="200">
		      <col width="200">
		    </colgroup>
		    <thead>
		      <tr>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校名称	</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">所在地</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校隶属</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">招生简章</span></th>
		      </tr> 
		    </thead>
		    <tbody>
		    <%List<Colleges> hd_college = (List)session.getAttribute("hd_college"); %>
		    <%for(int i=0;i<hd_college.size();i++) {%>
		      <tr>
		        <td><a href="<%=hd_college.get(i).getCollege_url() %>" target="_blank"><%=hd_college.get(i).getCollegename() %></a></td>
		        <td><%=hd_college.get(i).getPlace() %></td>
		        <td><%=hd_college.get(i).getCollege_belong() %></td>
		        <td><a href="<%=hd_college.get(i).getRecruit_message() %>" target="_blank">查询</a></td>
		      </tr>	
		      <%} %>
		    </tbody>
		  </table>
		</div>
    
    
    </div>
    
    <div class="layui-tab-item">
    <br>
    	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend><span style="font-size: large;font-weight: bolder;">华中院校</span></legend>
		</fieldset>
 
		<div class="layui-form">
		  <table class="layui-table">
		    <colgroup>
		      <col width="150">
		      <col width="150">
		      <col width="200">
		      <col width="200">
		    </colgroup>
		    <thead>
		      <tr>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校名称	</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">所在地</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校隶属</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">招生简章</span></th>
		      </tr> 
		    </thead>
		    <tbody>
		    <%List<Colleges> hz_college = (List)session.getAttribute("hz_college"); %>
		    <%for(int i=0;i<hz_college.size();i++) {%>
		      <tr>
		        <td><a href="<%=hz_college.get(i).getCollege_url() %>" target="_blank"><%=hz_college.get(i).getCollegename() %></a></td>
		        <td><%=hz_college.get(i).getPlace() %></td>
		        <td><%=hz_college.get(i).getCollege_belong() %></td>
		        <td><a href="<%=hz_college.get(i).getRecruit_message() %>" target="_blank">查询</a></td>
		      </tr>	
		      <%} %>
		    </tbody>
		  </table>
		</div>
    
    
    </div>
    
    <div class="layui-tab-item">
    <br>
    	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend><span style="font-size: large;font-weight: bolder;">华南院校</span></legend>
		</fieldset>
 
		<div class="layui-form">
		  <table class="layui-table">
		    <colgroup>
		      <col width="150">
		      <col width="150">
		      <col width="200">
		      <col width="200">
		    </colgroup>
		    <thead>
		      <tr>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校名称	</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">所在地</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校隶属</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">招生简章</span></th>
		      </tr> 
		    </thead>
		    <tbody>
		    <%List<Colleges> hn_college = (List)session.getAttribute("hn_college"); %>
		    <%for(int i=0;i<hn_college.size();i++) {%>
		      <tr>
		        <td><a href="<%=hn_college.get(i).getCollege_url() %>" target="_blank"><%=hn_college.get(i).getCollegename() %></a></td>
		        <td><%=hn_college.get(i).getPlace() %></td>
		        <td><%=hn_college.get(i).getCollege_belong() %></td>
		        <td><a href="<%=hn_college.get(i).getRecruit_message() %>" target="_blank">查询</a></td>
		      </tr>	
		      <%} %>
		    </tbody>
		  </table>
		</div>
    </div>
    
    <div class="layui-tab-item">
    
    <br>
    	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend><span style="font-size: large;font-weight: bolder;">东北院校</span></legend>
		</fieldset>
 
		<div class="layui-form">
		  <table class="layui-table">
		    <colgroup>
		      <col width="150">
		      <col width="150">
		      <col width="200">
		      <col width="200">
		    </colgroup>
		    <thead>
		      <tr>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校名称	</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">所在地</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校隶属</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">招生简章</span></th>
		      </tr> 
		    </thead>
		    <tbody>
		    <%List<Colleges> db_college = (List)session.getAttribute("db_college"); %>
		    <%for(int i=0;i<db_college.size();i++) {%>
		      <tr>
		        <td><a href="<%=db_college.get(i).getCollege_url() %>" target="_blank"><%=db_college.get(i).getCollegename() %></a></td>
		        <td><%=db_college.get(i).getPlace() %></td>
		        <td><%=db_college.get(i).getCollege_belong() %></td>
		        <td><a href="<%=db_college.get(i).getRecruit_message() %>" target="_blank">查询</a></td>
		      </tr>	
		      <%} %>
		    </tbody>
		  </table>
		</div>
    
    
    </div>
    
    <div class="layui-tab-item">
    
    <br>
    	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend><span style="font-size: large;font-weight: bolder;">西北院校</span></legend>
		</fieldset>
 
		<div class="layui-form">
		  <table class="layui-table">
		    <colgroup>
		      <col width="150">
		      <col width="150">
		      <col width="200">
		      <col width="200">
		    </colgroup>
		    <thead>
		      <tr>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校名称	</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">所在地</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校隶属</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">招生简章</span></th>
		      </tr> 
		    </thead>
		    <tbody>
		    <%List<Colleges> xb_college = (List)session.getAttribute("xb_college"); %>
		    <%for(int i=0;i<xb_college.size();i++) {%>
		      <tr>
		        <td><a href="<%=xb_college.get(i).getCollege_url() %>" target="_blank"><%=xb_college.get(i).getCollegename() %></a></td>
		        <td><%=xb_college.get(i).getPlace() %></td>
		        <td><%=xb_college.get(i).getCollege_belong() %></td>
		        <td><a href="<%=xb_college.get(i).getRecruit_message() %>" target="_blank">查询</a></td>
		      </tr>	
		      <%} %>
		    </tbody>
		  </table>
		</div>
    
    
    </div>
    
    <div class="layui-tab-item">
    <br>
    	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend><span style="font-size: large;font-weight: bolder;">西南院校</span></legend>
		</fieldset>
 
		<div class="layui-form">
		  <table class="layui-table">
		    <colgroup>
		      <col width="150">
		      <col width="150">
		      <col width="200">
		      <col width="200">
		    </colgroup>
		    <thead>
		      <tr>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校名称	</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">所在地</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校隶属</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">招生简章</span></th>
		      </tr> 
		    </thead>
		    <tbody>
		    <%List<Colleges> xn_college = (List)session.getAttribute("xn_college"); %>
		    <%for(int i=0;i<xn_college.size();i++) {%>
		      <tr>
		        <td><a href="<%=xn_college.get(i).getCollege_url() %>" target="_blank"><%=xn_college.get(i).getCollegename() %></a></td>
		        <td><%=xn_college.get(i).getPlace() %></td>
		        <td><%=xn_college.get(i).getCollege_belong() %></td>
		        <td><a href="<%=xn_college.get(i).getRecruit_message() %>" target="_blank">查询</a></td>
		      </tr>	
		      <%} %>
		    </tbody>
		  </table>
		</div>
    
    </div>
  </div>
</div>
   
       
<script src="<%=path%>/views/static/layui-v2.5.6/layui/layui.all.js" charset="utf-8"></script>
<script>
layui.use('element', function(){
  var $ = layui.jquery
  ,element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
  
  //触发事件
  var active = {
    tabAdd: function(){
      //新增一个Tab项
      element.tabAdd('demo', {
        title: '新选项'+ (Math.random()*1000|0) //用于演示
        ,content: '内容'+ (Math.random()*1000|0)
        ,id: new Date().getTime() //实际使用一般是规定好的id，这里以时间戳模拟下
      })
    }
    ,tabDelete: function(othis){
      //删除指定Tab项
      element.tabDelete('demo', '44'); //删除：“商品管理”
      
      
      othis.addClass('layui-btn-disabled');
    }
    ,tabChange: function(){
      //切换到指定Tab项
      element.tabChange('demo', '22'); //切换到：用户管理
    }
  };
  
  $('.site-demo-active').on('click', function(){
    var othis = $(this), type = othis.data('type');
    active[type] ? active[type].call(this, othis) : '';
  });
  
  
  
});
</script>

</body>
</html>